<!doctype html>
<html>
  Esto es start.html
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Lovers Matching - MainPage</title>

  </head>
  <body>

    <h1>Welcome to Lovers Matching !!</h1>
    "fb_uid = " fb_uid
    <form action="/registration">
      <input id="fb_uid" type="text" hidden="false" name="fb_uid"> 
      <input type="submit">
    </form>

    <script src="/js/all.js"></script>
    <script src="/js/jquery-1.7.1.js"></script>
    <script src="/js/jquery-ui-1.8.16.custom.min.js"></script>
    <script src="/js/common.functions.js"></script>
    
    <script>

        initialize();

        FB.getLoginStatus(function(response) {

          if (response.status != 'connected') {
            
            $('div#info')[0].innerHTML = 'You are not connected to Facebook!';

            return;

          } else {
            
            var doPoll = function(){
                $.get('list1', function(data) {
                  
                  console.debug('updating the people');
                  $('div#people')[0].innerHTML = data;

                  setTimeout(doPoll,5000);
                });
            };

            FB.api('/me', function(response) {
              $('input#fb_uid')[0].value = response.id;             
            });

            doPoll();

          }
        });  

    </script>
  </body>
</html>
